package com.zbkj.crmeb.store.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * im商品映射对象
 * @Description: 
 * @author daigb
 * @date 2021-04-29
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ImItemResDTO {
    /**
     * 请求编码
     */
    @JsonProperty(value = "code")
    private String code;

    /**
     * 成功标识
     */
    @JsonProperty(value = "success")
    private Boolean success;
    
    /**
     *响应信息
     */
    @JsonProperty(value = "message")
    private String message;
    
    /**
     * 异常信息
     */
    @JsonProperty(value = "error")
    private String error;
    
    /**
     * 时间戳
     */
    @JsonProperty(value = "timestamp")
    private Long timestamp;

    /**
     * 请求结果
     */
    @JsonProperty(value = "data")
    private List<ImItemDTO> imItemDTOs;
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class ImItemDTO {
        /**
         * skuid
         */
        @JsonProperty(value = "itemId")
        private String itemId;

        /**
         * 尺码
         */
        @JsonProperty(value = "size")
        private String size;

        /**
         * 吊牌价
         */
        @JsonProperty(value = "retailPrice")
        private BigDecimal retailPrice;

        /**
         * 结算价
         */
        @JsonProperty(value = "salePrice")
        private BigDecimal salePrice;

        /**
         * 库存数
         */
        @JsonProperty(value = "qty")
        private Integer qty;

        /**
         * 状态，1可售，2或者null为不可售
         */
        @JsonProperty(value = "status")
        private Integer status;
    }
    

}
